package com.telephone.purchase.service.impl;

import com.telephone.purchase.entity.Package;
import com.telephone.purchase.mapper.PackageMapper;
import com.telephone.purchase.service.PackageService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class PackageServiceImpl implements PackageService {
    @Autowired
    private PackageMapper packageMapper;
    @Override
    public List<Package> selectByGoodId(Long goodId) {
        return packageMapper.selectByGoodId(goodId);
    }

    @Override
    public Package selectByPrimaryKey(Long packageId) {
        return packageMapper.selectByPrimaryKey(packageId);
    }
}
